package com.ljtg.ljtgservice.service;

import com.ljtg.ljtgpojo.dto.OrderPaymentDTO;
import com.ljtg.ljtgpojo.dto.OrdersSubmitDTO;
import com.ljtg.ljtgpojo.vo.OrderPaymentVO;
import com.ljtg.ljtgpojo.vo.OrderSubmitVO;

public interface OrderService {
    /**
     * 用户下单
     * @param ordersSubmitDTO
     * @return
     */
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param orderPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrderPaymentDTO orderPaymentDTO) throws Exception;


    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);


}
